<?php
namespace CechargeChannel;

class CommitFind
{

    private $class_mode;

    /**
     * 初始时，传入具体的策略对象
     * @param $mode
     */
    public function __construct($mode)
    {
        $this->class_mode = $mode;
    }

    /**
     * 提交订单
     * @param $money
     */
    public function commit($data)
    {
        return $this->class_mode->commit($data);
    }
}
